const char * sParaStyle;
Name of style (to a maximum of 31 characters)
"Any" for Any paragraph style (i.e., to not include paragraph style in search criteria; default setting)
"No style" for No Style
short cAlignment;
kFCAttrAny for Any alignment (i.e., to not include alignment in search criteria)
0 (zero) for Left
1 for Center
2 for Right
3 for Justify
4 for Force Justify
short cLeadingType;
kFCAttrAny for Any leading method (i.e., to not include leading method in search criteria)Story editor only. The PGetFindParaAttr query works only in story editor.
0 (zero) for Proportional
1 for Top of Caps
2 for Baseline
Example. The following example changes all left-aligned text in the current publication to justifed text. (Notice that it sets all other Find and Change attributes to Any.) It then queries for the Find and Change paragraph settings.
PFindParaAttr("Any", left, kFCAttrAny);
PChangeParaAttr("Any", justify, kFCAttrAny);
PFindTypeAttr1("Any", kFCAttrAny, kFCAttrAny, kFCAttrAny, kFCAttrAny, kFCAttrAny);
PChangeTypeAttr1("Any", kFCAttrAny, kFCAttrAny, kFCAttrAny, kFCAttrAny, kFCAttrAny);
PFindTypeAttr2(kFCAttrAny, kFCAttrAny, "Any", kFCAttrAny);
PChangeTypeAttr2(kFCAttrAny, kFCAttrAny, "Any", kFCAttrAny);
PChangeAll("", "", kFCSAllStories, kFCAnyCase, kFCAllInstances, kFCUseAttributes);
PGetPFindParaAttr(--Reply: "Any", 0, kFCAttrAny);
PGetPChangeParaAttr(); // Reply: "Any", 3, kFCAttrAny);
The PChange, PChangeAll, PChangeNext, PChangeParaAttr, PChangeTypeAttr1, PChangeTypeAttr2, PChangeWindow, PFind, PFindNext, PFindParaAttr, PFindTypeAttr1, PFindTypeAttr2, and PFindWindow commands
Comments or suggestions? Contact Adobe Developer Support